Video processing method, electronic device, and storage medium

ABSTRACT

Provided are a video processing method, an electronic device, and a storage medium. The method is applied to an electronic device, and includes: acquiring decoding information when decoding a video file; and determining whether the decoding information is abnormal. The method further includes: in response to detecting the decoding information is abnormal, adding an identifier of the video file into a preset blacklist; and in response to detecting the decoding information is normal, adding the identifier of the video file into a preset whitelist, and performing display enhancement processing on the video file.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of International Application No.PCT/CN2019/104162, filed on Sep. 3, 2019, which claims priority toChinese Patent Application No. 201811198857.3, filed on Oct. 15, 2018.The entire disclosures of the aforementioned applications areincorporated herein by reference.

TECHNICAL FIELD

This disclosure relates to the technical field of electronic devices,and particularly to a video processing method, an electronic device, anda storage medium.

BACKGROUND

With the development of science techniques, electronic devices havebecome one of the most commonly used electronic products in people'sdaily lives. In particular, users often watch videos or play gamesthrough the electronic devices. Moreover, the electronic devices canprocess videos to improve the playback effect of the videos.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to explain the technical solutions in the embodiments of thepresent disclosure more clearly, drawings needed in the description ofthe embodiments will be briefly introduced below. Obviously, thedrawings described below illustrate only some embodiments of the presentdisclosure. For those skilled in the art, other drawings can also beobtained from these drawings without creative work.

FIG. 1 illustrates a schematic diagram of a video playback processprovided by an embodiment of the present disclosure;

FIG. 2 illustrates a schematic flowchart of a video processing methodprovided by an embodiment of the present disclosure;

FIG. 3 illustrates a schematic flowchart of another video processingmethod provided by an embodiment of the present disclosure;

FIG. 4 illustrates a schematic flowchart of block S220 of the videoprocessing method provided by the embodiment shown in FIG. 3 of thepresent disclosure;

FIG. 5 illustrates a schematic flowchart of block S230 of the videoprocessing method provided by the embodiment shown in FIG. 3 of thepresent disclosure;

FIG. 6 illustrates a schematic flowchart of block S240 of the videoprocessing method provided by the embodiment shown in FIG. 3 of thepresent disclosure;

FIG. 7 illustrates a schematic flowchart of a further video processingmethod provided by an embodiment of the present disclosure;

FIG. 8 illustrates a schematic flowchart of block S330 of the videoprocessing method provided by the embodiment shown in FIG. 7 of thepresent disclosure;

FIG. 9 illustrates a block diagram of a video processing apparatusprovided by an embodiment of the present disclosure;

FIG. 10 illustrates a block diagram of an electronic device provided byan embodiment of the present disclosure, where the electronic device isconfigured to execute the video processing method according to theembodiments of the present disclosure; and

FIG. 11 illustrates a storage unit configured to store or carry programcodes provided by an embodiment of the present disclosure, where theprogram codes are configured for implementation of the video processingmethod according to the embodiments of the present disclosure.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

In order to enable those skilled in the art to better understand thesolutions of the present disclosure, the technical solutions in theembodiments of the present disclosure will be described clearly andcompletely in conjunction with the accompanying drawings in theembodiments of the present disclosure.

Referring to FIG. 1, a video playback process is illustrated. Inspecific, once the operating system acquires data to be played, audioand video data are parsed. Generally, a video file is composed of avideo stream and an audio stream. Different video files have differentpackaging formats for the audio and video. A process of synthesizing theaudio stream and the video stream into a media file is referred to asmuxer, and a process of separating the audio stream and the video streamfrom the media file is referred to as demuxer. For playing a video file,it is required to separate the audio stream and the video stream fromthe file stream, and decode the audio and video streams respectively.After the decoding, the resulting video frames may be directly rendered,and the resulting audio frames may be sent to a buffer of an audiooutput device for playback. Of course, the time stamp of rendering thevideo frames needs to be synchronized with the time stamp of playing theaudio frames.

Specifically, video decoding may include hardware decoding and softwaredecoding. Regarding the hardware decoding, a part of video data that wasoriginally processed by the Central Processing Unit (CPU) is transferredto a Graphics Processing Unit (GPU), where the parallel computing powerof the GPU is much higher than that of the CPU. This can greatly reducethe load on the CPU. After the occupancy rate of the CPU is decreased,some other applications may run simultaneously. Of course, for a goodprocessor of excellent performance, such as i5 2320 or any quad-coreprocessor from AMD, both the hardware decoding and the software decodingcan be performed.

Specifically, as shown in FIG. 1, a Media Framework acquires, through anAPI interface with a client side, a video file to be played by theclient side, and sends it to a video codec (Video Decode). The MediaFramework is a multimedia framework in the Android system, and threeparts, i.e., MediaPlayer, MediaPlayerService and Stagefrightplayer,constitute the basic multimedia framework of Android. The multimediaframework adopts a C/S structure, in which MediaPlayer serves as theclient side of the C/S structure, and MediaPlayerService andStagefrightplayer serve as a server side of the C/S structure which isresponsible for playing a multimedia file. The server side completes arequest from the client side and makes a response thereto, throughStagefrightplayer. Video Decode is a super decoder that integrates themost commonly used decoding and playback functions for audio and video,and is used to decode video data, and send the decoded video data to avideo driver for subsequent transmission.

The software decoding means that the CPU is used, through software, todecode the video. The hardware decoding means that the video decodingtasks are independently performed by a dedicated daughter card devicewithout using the CPU.

Regardless of whether it is the hardware decoding or the softwaredecoding, after the video data is decoded, the decoded video data issent to a layer transfer module (SurfaceFlinger), and then rendered andsynthesized by SurfaceFlinger for display on a display screen.SurfaceFlinger is an independent service. It receives Surfaces of allWindows as input, calculates, according to parameters such as ZOrder,transparency, size and position, the position of each Surface in thefinally synthesized image, and then sends it to HWComposer or OpenGL togenerate the final FrameBuffer for display on a specific display devicesuch as a backlight display.

As shown in FIG. 1, in the software decoding, the CPU decodes the videodata and sends the decoded video data to SurfaceFlinger for renderingand synthesis; while for the hardware decoding, the video data isdecoded by the GPU and then sent to SurfaceFlinger for rendering andsynthesis. SurfaceFlinger will call the GPU to achieve rendering andsynthesis of images for display on a display screen.

The existing electronic devices process the video data in a fixed way.For example, for some video data, the existing electronic devices firstselect, according to the format of the video data, a correspondingdecoding mode to decode it, and then perform display enhancementprocessing on the decoded video data. However, in a case where thedecoding mode corresponding to the format of the video file has poorperformance, a long time is spent in decoding, and thus the GPU isoccupied for a long time; accordingly, problems of screen flicker andjamming would happen when the display enhancement processing isperformed. In view of the above problems, after long-term research, theinventor has proposed the video processing method and apparatus,electronic device, and storage medium provided by the embodiments ofthis disclosure, by which it is detected whether the decodinginformation of the video file acquired in the decoding process isabnormal, and the blacklist and whitelist are dynamically managedaccording to the result of the detection, so as to reduce theprobability of video jamming, and improve the playback effect and theuser experience. The specific video processing method will be describedin detail in the subsequent embodiments.

In the embodiments of the present disclosure, a video processing methodfor an electronic device is provided. The method includes: acquiringdecoding information when decoding a video file; adding an identifier ofthe video file to a preset blacklist, in response to detecting thedecoding information is abnormal; and adding the identifier of the videofile to a preset whitelist and performing display enhancement processingon the video file, in response to detecting the decoding information isnot abnormal.

In the embodiments of the present disclosure, a video processingapparatus for an electronic device is further provided. The apparatusincludes a decoding information acquiring module, a decoding informationdetecting module, a blacklist adding module and a whitelist addingmodule. The decoding information acquiring module is configured toacquire decoding information when decoding a video file. The decodinginformation detecting module is configured to detect whether thedecoding information is abnormal. The blacklist adding module isconfigured to add an identifier of the video file to a preset blacklistwhen the decoding information is abnormal. The whitelist adding moduleis configured to add the identifier of the video file to a presetwhitelist and perform display enhancement processing on the video file,when the decoding information is not abnormal.

In the embodiments of the present disclosure, an electronic device isfurther provided. The electronic device includes a memory and aprocessor. The memory is coupled to the processor. The memory storesinstructions which, when being executed by the processor, cause theprocessor to implement operations of: acquiring decoding informationwhen decoding a video file; decoding the video file with a decoding modecorresponding to a video file format of the video file; performing nodisplay enhancement processing on the decoded video file, in response todetermining the decoding information is abnormal; and performing thedisplay enhancement processing on the decoded video file, in response todetermining the decoding information is not abnormal.

In the embodiments of the present disclosure, a non-transitorycomputer-readable storage medium storing program codes thereon isfurther provided. The program codes, when being executed by a processor,cause the processor to implement operations of: acquiring decodinginformation when decoding a video file; decoding the video file with adecoding mode corresponding to a video file format of the video file, inresponse to determining the decoding information is not abnormal;converting the video file format of the video file into a target videofile format, and decoding the video file with a decoding modecorresponding to the target video file format, in response todetermining the decoding information is abnormal; and performing displayenhancement processing on the decoded video file.

Embodiments

Referring to FIG. 2, a schematic flowchart of a video processing methodprovided by an embodiment of the present disclosure is illustrated. Thevideo processing method is used to detect whether the decodinginformation of a video file acquired in the decoding process isabnormal, and dynamically manage the blacklist and whitelist accordingto the result of the detection, so as to reduce the probability of videojamming, and improve the playback effect and the user experience. In aspecific implementation, the video processing method is applied to avideo processing apparatus 200 shown in FIG. 9 and an electronic device100 (FIG. 10) equipped with the video processing apparatus 200. In thefollowing, the specific process of this embodiment will be illustratedwith an electronic device serving as an example. Of course, it isunderstandable that the electronic device to which the embodiment can beapplied may be a smart phone, a tablet computer, a wearable electronicdevice, a vehicle-mounted device, a gateway and the like, which is notlimited here. The following will elaborate on the process shown in FIG.2. Specifically, the video processing method may include operations asfollows.

At block S110, decoding information is acquired when decoding a videofile.

In an implementation, the video file decoded by the electronic devicemay be obtained from a cloud server or other electronic devices, or maybe obtained locally, which is not limited here. In the case where thevideo file is obtained from the cloud server, the video file may becached or downloaded by the electronic device from the cloud server, orobtained online by the electronic device from the cloud server. Forexample, the video file may be video data that is cached, downloaded, orobtained online by the electronic device from the cloud server with avideo playback software installed on the electronic device. In the casewhere the video file is obtained locally by the electronic device, thevideo file may be video data downloaded in advance by the electronicdevice and stored in a local storage of the electronic device. In thecase where the video file is acquired by the electronic device fromother electronic devices, the video file may be transmitted from theother electronic devices to the electronic device through a wirelesscommunication protocol, such as Wlan protocol, Bluetooth protocol,ZigBee protocol or WiFi protocol; or the video file may also betransmitted from the other electronic devices to the electronic devicethrough a data network, such as a 2G network, a 3G network or a 4Gnetwork, which is not limited here.

And when the electronic device decodes the video file, the decodinginformation is detected and acquired. The decoding information may bedetected in real time, at an interval of a preset period of time, or ina way set by the user. Optionally, in an implementation, the decodinginformation is detected in real time so as to ensure the accuracy of thedetection of the decoding information. The decoding information mayinclude a decoding duration, a decoding efficiency, a success rate ofthe decoding and the like, which are not limited here.

At block S120, it is detected whether the decoding information isabnormal.

In an implementation, preset decoding information is set and stored inthe electronic device in advance, as a judgment basis for the decodinginformation. As such, after the decoding information is acquired whenthe electronic device decodes the video file, the decoding informationis compared with the preset decoding information to detect whether thedecoding information meets the preset decoding information. When thedecoding information meets the preset decoding information, it indicatesthat the decoding information is abnormal. When the decoding informationdoes not meet the preset decoding information, it indicates that thedecoding information is not abnormal. In the embodiment, when thedecoding information is abnormal, problems such as screen flicker andjamming of the electronic device may be caused.

For example, in a case where the decoding information is the decodingduration, the preset decoding information may be a preset duration, andthe decoding duration may be compared with the preset duration of thepreset decoding information to detect whether the decoding duration isgreater than the preset duration. When the decoding duration is greaterthan the preset duration, it indicates that the decoding informationmeets the preset decoding information, that is, the decoding informationis abnormal. When the decoding duration is smaller than or equal to thepreset duration, it indicates that the decoding information does notmeet the preset decoding information, that is, the decoding informationis not abnormal.

For example, in a case where the decoding information is the decodingefficiency, the preset decoding information may be an amount of decodingwithin a preset time period, and the decoding efficiency and the amountof decoding within the preset time period of the preset decodinginformation may be compared to detect whether the decoding efficiency isgreater than the amount of decoding within the preset time period. Whenthe decoding efficiency is greater than the amount of decoding withinthe preset time period, it indicates that the decoding information doesnot meet the preset decoding information, that is, the decodinginformation is not abnormal. When the decoding efficiency is smallerthan or equal to the amount of decoding within the preset time period,it indicates that the decoding information meets the preset decodinginformation, that is, the decoding information is abnormal.

For example, in a case where the decoding information is the successrate of the decoding, the preset decoding information may be a ratio,and the success rate of decoding may be compared with the ratio of thepreset decoding information to detect whether the success rate of thedecoding is greater than the ratio. When the success rate of thedecoding is greater than the ratio, it indicates that the decodinginformation does not meet the preset decoding information, that is, thedecoding information is not abnormal. When the success rate of thedecoding is smaller than or equal to the ratio, it indicates that thedecoding information meets the preset decoding information, that is, thedecoding information is abnormal.

At block S130, an identifier of the video file is added to a presetblacklist, in response to detecting the decoding information isabnormal.

In the case where the decoding information is determined to be abnormal,other processing performed during the decoding process of the video filemay cause problems of screen flicker and jamming to the video playback.For example, during the decoding process, execution of the displayenhancement processing may cause problems of screen flicker and jammingto the video playback. In this case, the identifier of the video filemay be added to a preset blacklist. In an implementation, a blacklistmay be set and stored in the electronic device in advance, as a presetblacklist. The preset blacklist may be used to record video files whosedecoding information is abnormal during the decoding process. Therefore,when the decoding information of the video file is determined to beabnormal, the identifier of the video file may be added to the presetblacklist. The identifier of the video file may include an identityidentifier, serial number, identification code, format identifier andthe like of the video file.

The display enhancement processing on the video file may includeexposure enhancement, denoising, edge sharpening, contrast enhancement,saturation enhancement, image rendering or the like. Therefore, theelectronic device needs to provide sufficient GPU resources. In the casewhere the decoding information of a video file acquired during thedecoding process is determined to be abnormal, it can be considered thatthis video file may occupy more GPU resources during the decodingprocess. Therefore, if the display enhancement processing is furtherperformed on the video file, a problem that the decoding and the displayenhancement processing of the video file occupy too many GPU resourceswill occur, which will cause video jamming and thus affect the videoplayback effects. Therefore, in the case where the decoding informationof the video file acquired during the decoding process is determined tobe abnormal, the display enhancement processing is not performed on thevideo file, so as to avoid the display enhancement processing fromoccupying the GPU resources. That is, the display enhancement processingis not performed on the video file whose identifier is added to theblacklist, so as to reduce the possibility of screen flicker and jammingof the video playback.

At block S140, the identifier of the video file is added to a presetwhitelist, and display enhancement processing is performed on the videofile, in response to detecting the decoding information is not abnormal.

In the case where the decoding information is determined to be notabnormal, other processing performed during the decoding process of thevideo file may not cause problems of screen flicker and jamming to thevideo playback. For example, during the decoding process, execution ofthe display enhancement processing may not cause problems of screenflicker and jamming to the video playback. In this case, the identifierof the video file may be added to a preset whitelist. In animplementation, a whitelist may be set and stored in the electronicdevice in advance, as a preset whitelist. The preset whitelist may beused to record video files whose decoding information is not abnormalduring the decoding process. Therefore, when the decoding information ofthe video file is determined to be not abnormal, the identifier of thevideo file may be added to the preset whitelist. The identifier of thevideo file may include the identity identifier, serial number,identification code, format identifier, and the like of the video file.

Since the decoding information of the video file is not abnormal duringthe decoding process, the execution of the display enhancementprocessing on the video file will not cause the problems of screenflicker and jamming to the video playback. Accordingly, the displayenhancement processing may be performed on the video file to improve thedisplay effect of the video file.

In an implementation, the display enhancement processing may include atleast one selected from exposure enhancement, denoising, edgesharpening, contrast enhancement, and saturation enhancement.

Since image data of each frame of the decoded video data is in a RGBAformat, it is necessary to convert the data in the RGBA format to datain a HSV format so as to perform the display enhancement processing onthe video data. Specifically, a histogram of the image data is acquired,and statistical processing is performed on the histogram to obtainparameters for converting the data in the RGBA format into data in theHSV format; thereafter, the data in the RGBA format may be convertedinto the data in the HSV format, according to the parameters.

The exposure enhancement may be used to increase brightness of theimage. For area(s) on the image where the brightness is low, therespective brightness may be increased by means of the histogram of theimage. In addition, the brightness of the image may also be increased bynonlinear superposition. Specifically, let I represent a dark image tobe processed, and T represent a bright image after processing, theexposure enhancement method may be expressed as T(x)=I(x)+(1−I(x))*I(x),where T and I are both images having values of [0,1]. If the effect isnot good enough after one processing, the algorithm may be iteratedmultiple times.

The denoising on the image data is used to remove noises of the image.Specifically, the quality of the image may be deteriorated due todisturbance and effect caused by various noises during the generationand transmission, which negatively influences the subsequent processingon the image and the visual effect of the image. There are many kinds ofnoises, such as electrical noise, mechanical noise, channel noise andother noises. Therefore, in order to suppress the noises and improve theimage quality to facilitate subsequent processing, a denoisingpreprocessing has to be performed on the image. From the viewpoint ofthe probability distribution of the noises, the noises include Gaussiannoise, Rayleigh noise, gamma noise, exponential noise and uniform noise.

In an implementation, a Gaussian filter may be used to denoise theimage. The Gaussian filter is a linear filter that can effectivelysuppress the noises and smooth the image. The working principle of theGaussian filter is similar to that of a mean filter, where each of thetwo filters takes an average value of the pixels in the window of thefilter as an output. The coefficients of the window template of theGaussian filter are different from those of the mean filter. Thecoefficients of the template of the mean filter are all set as 1,whereas the coefficients of the template of the Gaussian filter decreaseas the distance from the center of the template increases. Therefore,the Gaussian filter less blurs the image compared with the mean filter.

For example, a 5×5 Gaussian filtering window is generated, and samplingis performed with the center of the template set as the origin. Thecoordinates of various positions of the template are plug into theGaussian function, thereby obtaining the coefficients of the template.Then, the image is convolved with the Gaussian filtering window so as tobe denoised.

The edge sharpening is used to make a blurred image become clear. Thereare generally two methods for image sharpening: one is differentiation,and the other is high-pass filtering.

The contrast enhancement is used to improve the image quality of theimage, so as to make the colors in the image contrasting. Specifically,contrast stretching is one way for image enhancement, and it alsobelongs to gray-scale transformation. By means of the gray-scaletransformation, the gray-scale values are expanded to the entireinterval of 0-255; accordingly, the contrast is obviously andsubstantially enhanced. The following formula may be used to map thegray-scale value of a certain pixel to a larger gray-scale space:

I(x,y)=[(I(x,y)−Imin)/(Imax−Imin)](MAX−MIN)+MIN;

where Imin and Imax are the minimum and maximum gray-scale values of theoriginal image, and MIN and MAX are the minimum and maximum gray-scalevalues of the expanded gray-scale space.

In the video processing method provided by the embodiment of the presentdisclosure, decoding information is acquired when decoding a video file,and it is detected whether the decoding information is abnormal. In thecase where the decoding information is abnormal, an identifier of thevideo file is added to a preset blacklist; and in the case where thedecoding information is not abnormal, the identifier of the video fileis added to a preset whitelist and the display enhancement processing isperformed on the video file. As such, by detecting whether the decodinginformation of the video file acquired during the decoding process isabnormal and dynamically managing the blacklist and the whitelist basedon the result of the detection, the probability of video jamming isreduced, and the playback effect and user experience are improved.

Referring to FIG. 3, a schematic flowchart of a video processing methodprovided by another embodiment of the present disclosure is illustrated.The video processing method is applied to the electronic devicementioned above. The following will elaborate on the process shown inFIG. 3. Specifically, the method may include operations as follows.

At block S210, a video file format of a video file is acquired whendecoding the video file.

During the process of decoding a video file, the video file isidentified to obtain a video file format of the video file. It isunderstandable that the video file format is used to represent a formatin which the video file is saved. The video file format of the videofile may include: wmv format, asf format and asx format for MicrosoftVideo; rm format and rmvb format for Real Player; MP4 format for MPEGvideo; 3 gp format for mobile video; mov format and m4v format for Applevideo; and avi format, dat format, mkv format, flv format, vob formatfor other common videos, and the like. In an implementation, the videofile format of the video file is determined through an identificationoperation. Specifically, the suffix of the video file may be obtained byviewing an extension of the video file or by viewing attributes of thevideo file; accordingly, the video file format of the video file may beacquired.

At block S220, it is detected whether the video file format meets apreset format.

In an implementation, a preset format is set in advance and storedlocally in the electronic device, as a judgment basis for the video fileformat. After the video file format of the video file is acquired, thevideo file format of the video file is compared with a preset format todetect whether the video file format of the video file meets the presetformat. That is, in this embodiment, the decoding information includesthe video file format of the video file, and the preset decodinginformation includes a preset format.

In an implementation, the preset format may include one preset videofile format or multiple preset video file formats. In an implementation,in the case where the preset format includes one video file format, thevideo file format of the video file is compared with the one presetvideo file format, and it is determined that the video file format ofthe video file meets the preset format in response to detecting thevideo file format of the video file is consistent with the one presetvideo file format, otherwise, it is determined that the video fileformat of the video file does not meet the preset format. In the casewhere the preset format includes multiple preset video file formats, thevideo file format of the video file is compared with each of themultiple preset video file formats, and it is determined that the videofile format of the video file meets the preset format in response todetecting the video file format of the video file is consistent with oneof the multiple preset video file formats, otherwise, it is determinedthat the video file format of the video file does not meet the presetformat. That is, it is determined that the video file format of thevideo file does not meet the preset format, when the video file formatof the video file is not consistent with any one of the multiple presetvideo file formats.

A preset format blacklist is set in the electronic device, and a videofile format included in the preset format blacklist is poor in terms ofthe decoding performance, that is, such a video file format needs totake a long time for decoding, and thus the GPU resources are occupiedfor a long time. In an implementation, all video file formats meetingthe preset format may be added to the preset format blacklist. Inspecific, when a video file format is included in the preset formatblacklist, the video decoding performance corresponding to the videofile format is poor. In an implementation, the preset format may includeat least the wmv format.

Referring to FIG. 4, a schematic flowchart of block S220 of the videoprocessing method shown in FIG. 3 of the present disclosure isillustrated. The following will elaborate on the process shown in FIG.4. Specifically, the block S220 may include operations as follows.

At block S221, a decoding mode corresponding to the video file format isacquired.

It is understandable that different videos are usually compressed usingdifferent encoders. Therefore, the video file corresponding to the videofile format needs to be decoded with a corresponding decoding mode. Thecommonly used codecs may include: Part 2 of MPEG-1, Part 2 of MPEG-2,Part 2 of MPEG-4, Part 10 of MPEG-4, DivX, XviD, 3ivx, or the like.

In an implementation, a mapping table may be pre-configured and storedin the electronic device. The mapping table includes at leastcorrespondences between video file formats and decoding modes, as shownin Table 1, in which A represents the video file format and B representsthe decoding mode. In an implementation, the correspondences between thevideo file formats and the decoding modes may include: each video fileformat corresponding to one decoding mode, that is, there is one-to-onecorrespondence between the video file formats and the decoding modes;each video file format corresponding to multiple decoding modes;multiple video file formats corresponding to one decoding mode, or thelike, which is not limited here. Specifically, after the video fileformat of the video file is acquired, the mapping table is searched fora pre-stored video file format that is consistent with the video fileformat of the video file, and then is searched for a decoding modecorresponding to the pre-stored video file format. The searched decodingmode may be regarded as the decoding mode corresponding to the videofile format of the video file.

TABLE 1 Video file format Decoding mode A1 B1 A2 B2 A3 B3

At block S222, it is detected whether the decoding mode meets a presetdecoding mode.

In an implementation, a preset decoding mode is set in advance andstored locally in the electronic device, as a judgment basis for thedecoding mode corresponding to the video file format. After the decodingmode corresponding to the video file format is acquired, the decodingmode is compared with the preset decoding mode to detect whether thedecoding mode meets the preset decoding mode.

In an implementation, the preset decoding mode may include one presetdecoding mode or multiple preset decoding modes. In an implementation,in the case where the preset decoding mode includes one preset decodingmode, the decoding mode corresponding to the video file format iscompared with the one preset decoding mode, and it is determined thatthe decoding mode corresponding to the video file format meets thepreset decoding mode in response to detecting the decoding modecorresponding to the video file format is consistent with the one presetdecoding mode, otherwise, it is determined that the decoding modecorresponding to the video file format does not meet the preset decodingmode. In the case where the preset decoding mode includes multiplepreset decoding modes, the decoding mode corresponding to the video fileformat is compared with each of the multiple preset decoding modes, andit is determined that the decoding mode corresponding to the video fileformat meets the preset decoding mode in response to detecting thedecoding mode corresponding to the video file format is consistent withany one of the multiple preset decoding modes, otherwise, it isdetermined that the decoding mode corresponding to the video file formatdoes not meet the preset decoding mode. That is, it is determined thatthe decoding mode corresponding to the video file format does not meetthe preset decoding mode, when the decoding mode corresponding to thevideo file format is not consistent with any one of the multiple presetdecoding modes.

Similarly, a preset decoding mode blacklist is set in the electronicdevice, and a decoding mode included in the preset decoding modeblacklist is poor in terms of the decoding performance, that is, itneeds to take a long time for decoding the corresponding video fileformat, and thus the GPU resources are occupied for a long time. In animplementation, all decoding modes meeting the preset decoding mode maybe added to the preset decoding mode blacklist. In specific, when adecoding mode is included in the preset decoding mode blacklist, theperformance of the decoding mode is poor. In an implementation, thepreset decoding mode may include at least Video Codec 1 software (vclsw)decoding.

At block S223, it is determined that the video file format meets thepreset format in response to detecting the decoding mode meets thepreset decoding mode.

In an implementation, there is a correspondence between the decodingmode and the video file format. That is, if the performance of thedecoding mode is poor, the video file format corresponding to thedecoding mode is more time-consuming for the decoding; and if theperformance of the decoding mode is good, the video file formatcorresponding to the decoding mode is less time-consuming for thedecoding. Further, when it is determined that the decoding modecorresponding to the video file format meets the preset decoding mode,it may be considered that the corresponding video file format is poor interms of the decoding performance and is time-consuming for thedecoding. Therefore, it may be confirmed that the video file formatmeets the preset format.

At block S224, it is determined that the video file format does not meetthe preset format, in response to detecting the decoding mode does notmeet the preset decoding mode.

In another aspect, when it is determined that the decoding modecorresponding to the video file format does not meet the preset decodingmode, it may be considered that the video file format is good in termsof the decoding performance, and it takes a short time for the decoding.Therefore, it can be confirmed that the video file format does not meetthe preset format.

At block S230, it is determined that the decoding information isabnormal, and an identifier of the video file is added to a presetblacklist, in response to detecting the video file format meets thepreset format.

Referring to FIG. 5, a schematic flowchart of block S230 of the videoprocessing method shown in FIG. 3 of the present disclosure isillustrated. The following will elaborate on the process shown in FIG.5. Specifically, the block S230 may include operations as follows.

At block S231, the video file is decoded with the decoding modecorresponding to the video file format, in response to detecting thevideo file format meets the preset format.

Specifically, when the video file format meets the preset format, thevideo file is decoded with the decoding mode meeting the preset decodingmode. For example, in a case where the video file format of the videofile is the wmv format, the video file is decoded with the correspondingdecoding mode of vclsw.

At block S232, the decoded video file is displayed.

In an implementation, the decoded video file is directly displayed onthe electronic device after undergoing conventional processing. In otherwords, no display enhancement processing is performed on the decodedvideo file, so as to avoid the problem of video jamming caused by a factthat too many GPU resources are occupied by the display enhancementprocessing.

At block S240, it is determined that the decoding information is notabnormal and the identifier of the video file is added to a presetwhitelist, and the display enhancement processing is performed on thevideo file, in response to detecting the video file format does not meetthe preset format.

Referring to FIG. 6, a schematic flowchart of block S240 of the videoprocessing method shown in FIG. 3 of the present disclosure isillustrated. The following will elaborate on the process shown in FIG.6. Specifically, the block S240 may include operations as follows.

At block S241, the video file is decoded with the decoding modecorresponding to the video file format, in response to detecting thevideo file format does not meet the preset format.

Specifically, when the video file format does not meet the presetformat, the video file is decoded with the decoding mode that does notmeet the preset decoding mode. For example, in a case where the videofile format of the video file is the MP4 format, the video file isdecoded with a corresponding MP4 decoding mode.

At block S242, the display enhancement processing is performed on thedecoded video file.

In an implementation, in the case where the video file format does notmeet the preset format, the video file format corresponding to the videofile is good in terms of the decoding performance, and it takes a shorttime and occupies less GPU resources for the decoding.

Therefore, the execution of the display enhancement processing on thevideo file does not occupy too many GPU resources. Accordingly, thedisplay enhancement processing may be performed on the video file, so asto improve the display effect of the video file.

At block S243, the video file after undergoing the display enhancementprocessing is displayed.

Specifically, the video file after undergoing the display enhancementprocessing is displayed on the electronic device, so that the user canwatch the video file with a better playback effect, and thus the userexperience is improved.

In the video processing method provided by the another embodiment of thepresent disclosure, a video file format of a video file is acquired whendecoding the video file, and it is detected whether the video fileformat meets a preset format. In the case where the video file formatmeets the preset format, it is determined that the decoding informationis abnormal, and an identifier of the video file is added to a presetblacklist. In the case where the video file format does not meet thepreset format, it is determined that the decoding information is notabnormal, and the identifier of the video file is added to a presetwhitelist, and the display enhancement processing is performed on thevideo file. Different from the video processing method shown in FIG. 2,in this embodiment, the video file format of the video file isrecognized, and the display enhancement processing is performed when thevideo file format does not meet the preset format, so as to reduce theprobability of video jamming and improve the playback effect and theuser experience.

Referring to FIG. 7, a schematic flowchart of a video processing methodprovided by a further another embodiment of the present disclosure isillustrated. The following will elaborate on the process shown in FIG.7. Specifically, the method may include operations as follows.

At block S310, a video file format of a video file is acquired whendecoding the video file.

At block S320, it is detected whether the video file format meets apreset format.

For the specific description of blocks S310 to S320, reference may bemade to blocks S210 to S220, which will not be repeated here.

At block S330, the video file format of the video file is converted intoa target video file format in response to detecting the video fileformat meets the preset format, where the target video file format doesnot meet the preset format.

In an implementation, in the case where the video file format isdetermined to meet the preset format, the execution of the displayenhancement processing on the video file would cause the video playbackto be jammed under this video file format. Therefore, in order to avoidthe playback of the video file from jamming, and to improve the videoplayback effect, the video file format of the video file may beconverted into a target video file format, where the target video fileformat does not meet the preset format. It is understandable that, inthis way, the video file corresponding to the target video file formatno longer occupies too many GPU resources for the decoding, and thedisplay enhancement processing may be performed on the video file toimprove the playback effect of the video file.

Referring to FIG. 8, a schematic flowchart of block S330 of the videoprocessing method shown in FIG. 7 of the present disclosure isillustrated. The following will elaborate on the process shown in FIG.8. Specifically, the block S330 may include operations as follows.

At block S331, a file size of the video file is acquired in response todetecting the video file format meets the preset format.

It can be understood that the size of the video file is positivelycorrelated with the time required for converting the format of the videofile. That is, the larger the file size of the video file, the longerthe time required for converting the format of the video file; and theless the file size of the video file, the shorter the time required forconverting the format of the video file. Therefore, in animplementation, before converting the video file format of the videofile, the size of the video file may be acquired. The file size of thevideo file may be 20 M, 50 M, 300 M, or the like, which is not limitedhere.

At block S332, it is detected whether the file size is less than apreset size.

In an implementation, a preset size is set in advance and stored locallyin the electronic device, as a judgment basis for the file size of thevideo file. After the file size of the video file is acquired, the filesize of the video file is compared with the preset size to detectwhether the file size of the video file is less than the preset size.For example, the preset size is 200 M, and it may be determined that thefile size of the video file is less than the preset size when the filesize of the video file is 50 M, and it may be determined that the filesize of the video file is larger than the preset size when the file sizeof the video file is 300 M.

At block S333, the video file format of the video file is converted intothe target video file format in response to detecting the file size isless than the preset size.

In the case where the file size of the video file is less than thepreset size, it would take a short time to convert the format of thevideo file, that is, it would not cause a long waiting time. Therefore,the video file format of the video file may be converted into a videofile format that does not meet the preset format, such as the targetvideo file format.

On the contrary, in the case where the file size of the video file isgreater than the preset size, it would take a long time to convert theformat of the video file, that is, it would cause a long waiting time.Therefore, the video file format of the video file may not be converted.

At block S340, the display enhancement processing is performed on thevideo file corresponding to the target video file format.

It is understandable that the target video file format does not meet thepreset format. Therefore, during the process of decoding the video filecorresponding to the target video file format, the decoding mode of gooddecoding performance may be adopted, which would not occupy too many GPUresources. Thus, the display enhancement processing may be performed onthe video file to improve the playback effect of the video file. In animplementation, the video file may be decoded with a decoding modecorresponding the target video file format, and the display enhancementprocessing is performed on the decoded video file.

At block S350, it is determined that the decoding information is notabnormal, the identifier of the video file is added to a presetwhitelist, and the display enhancement processing is performed on thevideo file, in response to detecting the video file format does not meetthe preset format.

In the video processing method provided by the further anotherembodiment of the present disclosure, a video file format of a videofile is acquired when decoding the video file, and it is detectedwhether the video file format meets a preset format. In the case wherethe video file format meets the preset format, the video file format ofthe video file is converted into a target file format that does not meetthe preset format, and the display enhancement processing is performedon the video file corresponding to the target video file format. In thecase where the video file format does not meet the preset format, it isdetermined that the decoding information is not abnormal, the identifierof the video file is added to a preset whitelist, and the displayenhancement processing is performed on the video file. Different fromthe video processing method shown in FIG. 2, in the embodiment, when thevideo file format of the video file meets the preset format, the videofile format of the video file is converted into a target video fileformat that does not meet the preset format, so that the displayenhancement processing may be performed on the video file, therebyimproving the display effect of the video file.

Referring to FIG. 9, a block diagram of a video processing apparatus 200according to an embodiment of the present disclosure is illustrated. Thevideo processing apparatus 200 is applied to the electronic devicementioned above. The following will elaborate on the block diagram shownin FIG. 9. The video processing apparatus 200 may include a decodinginformation acquiring module 210, a decoding information detectingmodule 220, a blacklist adding module 230, and a whitelist adding module240.

The decoding information acquiring module 210 is configured to acquiredecoding information when the electronic device decodes a video file.

The decoding information detecting module 220 is configured to detectwhether the decoding information is abnormal. In an implementation, thedecoding information may include a video file format of the video file,and the decoding information detecting module 220 may include a formatdetecting sub-module, an abnormality determining sub-module, and ano-abnormality determining sub-module.

The format detecting sub-module is configured to detect whether thevideo file format meets a preset format. In an implementation, theformat detecting sub-module includes a decoding mode acquiring unit, adecoding mode detecting unit, a first format determining unit, and asecond format determining unit.

The decoding mode acquiring unit is configured to acquire a decodingmode corresponding to the video file format.

The decoding mode detecting unit is configured to detect whether thedecoding mode meets a preset decoding mode.

The first format determining unit is configured to determine the videofile format meets the preset format, when the decoding mode meets thepreset decoding mode.

The second format determining unit is configured to determine the videofile format does not meet the preset format, when the decoding mode doesnot meet the preset decoding mode.

The abnormality determining sub-module is configured to determine thedecoding information is abnormal when the video file format meets thepreset format. In an implementation, the abnormality determiningsub-module includes a first decoding unit, a first displaying unit, aformat converting unit and a first display enhancement processing unit.

The first decoding unit is configured to decode the video file with thedecoding mode corresponding to the video file format, when the videofile format meets the preset format.

The first displaying unit is configured to display the decoded videofile.

The format converting unit is configured to convert the video fileformat of the video file into a target video file format, when the videofile format meets the preset format, where the target video file formatdoes not meet the preset format. In an implementation, the formatconverting unit includes a file size acquiring subunit, a file sizedetecting subunit and a format converting subunit.

The file size acquiring subunit is configured to acquire a file size ofthe video file, when the video file format meets the preset format.

The file size detecting subunit is configured to detect whether the filesize is less than a preset size.

The format converting subunit is configured to convert the video fileformat of the video file into the target video file format, when thefile size is less than the preset size.

The first display enhancement processing unit is configured to performthe display enhancement processing on the video file corresponding tothe target video file format.

The no-abnormality determining sub-module is configured to determine thedecoding information is not abnormal, when the video file format doesnot meet the preset format. In an implementation, the no-abnormalitydetermining sub-module includes a second decoding unit, a second displayenhancement processing unit and a second displaying unit.

The second decoding unit is configured to decode the video file with thedecoding mode corresponding to the video file format, when the videofile format does not meet the preset format.

The second display enhancement processing unit is configured to performthe display enhancement processing on the decoded video file.

The second displaying unit is configured to display the video file afterthe display enhancement processing.

The blacklist adding module 230 is configured to add an identifier ofthe video file to a preset blacklist, when the decoding information isabnormal.

The whitelist adding module 240 is configured to add the identifier ofthe video file to a preset whitelist, and perform the displayenhancement processing on the video file, when the decoding informationis not abnormal.

The video processing apparatus provided by the embodiment of thedisclosure includes a decoding information acquiring module, a decodinginformation detecting module, a blacklist adding module and a whitelistadding module. The decoding information acquiring module is configuredto acquire decoding information when the electronic device decodes avideo file. The decoding information detecting module is configured todetect whether the decoding information is abnormal. The blacklistadding module is configured to add an identifier of the video file to apreset blacklist, when the decoding information is abnormal. Thewhitelist adding module is configured to add the identifier of the videofile to a preset whitelist and perform the display enhancementprocessing on the video file, when the decoding information is notabnormal. As such, by detecting whether the decoding information of thevideo file acquired during the decoding process is abnormal, anddynamically managing the blacklist and the whitelist based on the resultof the detection, the probability of video jamming is reduced, and theplayback effect and user experience are improved.

Those skilled in the art can clearly understand that, regarding thespecific working process of the apparatus and various modules describedabove, reference may be made to the corresponding process in theforegoing method embodiments, which will not be repeated here, for theconvenience and conciseness of the description.

In the various embodiments provided in this disclosure, the couplingbetween the modules may be electrical, mechanical or in other forms.

In addition, the various functional modules in the embodiments of thepresent disclosure may be integrated into one processing module, or eachmodule may exist alone physically, or two or more modules may beintegrated into one module. The integrated module(s) mentioned above maybe implemented in hardware or software functional modules.

Referring to FIG. 10, a structural block diagram of an electronic device100 provided by an embodiment of the present disclosure is illustrated.The electronic device 100 may be an electronic device capable of runningapplication programs, such as a smart phone, a tablet computer or ane-book. The electronic device 100 in this disclosure may include one ormore of the following components: a processor 110, a memory 120, ascreen 130, a codec 140 and one or more application programs. The one ormore application programs may be stored in the memory 120 and configuredto be executed by one or more processors 110. The one or more programsare configured to execute the methods described in the foregoing methodembodiments.

In an implementation, instructions of the one or more programs which,when being executed by the processor 110, may cause the processor 110 toimplement operations comprising: acquiring decoding information whendecoding a video file; decoding the video file with a decoding modecorresponding to a video file format of the video file; performing nodisplay enhancement processing on the decoded video file, in response todetermining the decoding information is abnormal; and performing thedisplay enhancement processing on the decoded video file, in response todetermining the decoding information is not abnormal.

The determining the decoding information is abnormal may include:determining the decoding information is abnormal, in response todetecting the video file format is consistent with a preset format. Andthe detecting the video file format is consistent with a preset formatmay include: determining the video file format is consistent with thepreset format, in response to detecting a decoding mode corresponding tothe video file format is consistent with a preset decoding mode. Withregard to other details of the acquisition of the decoding information,the decoding of the video file, the determining of the abnormality ofthe decoding information, the display enhancement processing and thesubsequent displaying operation, reference may be made to the foregoing,which will not be repeated here.

The processor 110 may include one or more processing cores. Theprocessor 110 uses various interfaces and lines to connect various partsof the entire electronic device 100, and performs various functions andprocesses data of the electronic device 100 by running or executinginstructions, program(s), code sets or instruction sets stored in thememory 120, and calling data stored in the memory 120. Optionally, theprocessor 110 may be implemented in at least one selected from a DigitalSignal Processor (DSP), a Field-Programmable Gate Array (FPGA) and aProgrammable Logic Array (PLA). The processor 110 may be integrated withone of a Central Processing Unit (CPU), a Graphics Processing Unit(GPU), a modem and the like, or a combination thereof. The CPU mainlyprocesses the operating system, user interface and application programs.The GPU is responsible for rendering and drawing the display contents.The modem is used for the wireless communication. It can be understoodthat the above-mentioned modem may not be integrated into the processor110, and may be implemented by a separate communication chip.

The memory 120 may include a Random Access Memory (RAM), or may alsoinclude a Read-Only Memory (ROM). The memory 120 may be used to storeinstructions, programs, codes, code sets or instruction sets. The memory120 may include a program storage area and a data storage area. Theprogram storage area may store instructions for implementing theoperating system, instructions for implementing at least one function(such as a touch function, a sound playback function or an image displayfunction), instructions for implementing the various method embodiments,and the like. The data storage area can store data (such as a phonebook, audio and video data, chat record data) created by the electronicdevice 100 during use.

The codec 140 may be used to encode or decode video data, and thentransmit the decoded video data to the screen 130 for display. The codec140 may be a GPU, a dedicated DSP, an FPGA, an ASIG chip or the like.

Referring to FIG. 11, a structural block diagram of a computer-readablestorage medium provided by an embodiment of the present disclosure isillustrated. The computer-readable storage medium 300 stores programcodes therein, and the program codes are configured to be invoked by aprocessor to execute the method described in the foregoing methodembodiments.

In an implementation, the program codes which, when being executed bythe processor 110, may cause the processor 110 to implement operationsincluding: acquiring decoding information when decoding a video file;decoding the video file with a decoding mode corresponding to a videofile format of the video file, in response to determining the decodinginformation is not abnormal; converting the video file format of thevideo file into a target video file format, and decoding the video filewith a decoding mode corresponding to the target video file format, inresponse to determining the decoding information is abnormal; andperforming display enhancement processing on the decoded video file.

With regard to details of the acquisition of the decoding information,the decoding of the video file, the determining of the abnormality ofthe decoding information, the conversion of the video file format of thevideo file, the display enhancement processing and the subsequentdisplaying operation, reference may be made to the foregoing, which willnot be repeated here.

The computer-readable storage medium 300 may be an electronic memory,such as flash memory, Electrically Erasable Programmable Read OnlyMemory (EEPROM), EPROM, hard disk or ROM. Optionally, thecomputer-readable storage medium 300 includes a non-transitorycomputer-readable storage medium. The computer-readable storage medium300 has a storage space for the program codes 310 for executing variousmethod operations in the above-mentioned methods. These program codesmay be read from or written into one or more computer program products.The program codes 310 may for example be compressed in a suitable form.

In summary, with the video processing method and apparatus, electronicdevice and storage medium provided by the embodiments of the presentdisclosure, decoding information is acquired when an electronic devicedecodes a video file, and it is detected whether the decodinginformation is abnormal. In the case where the decoding information isabnormal, an identifier of the video file is added to a presetblacklist. In the case where the decoding information is not abnormal,the identifier of the video file is added to a preset whitelist, anddisplay enhancement processing is performed on the video file. As such,by detecting whether the decoding information of the video file acquiredduring the decoding process is abnormal, and dynamically managing theblacklist and the whitelist according to the result of the detection,the probability of video jamming is reduced, and the playback effect anduser experience are improved.

Finally, it should be noted that the above embodiments are only used toillustrate the technical solutions of the disclosure, rather than limitit. Although the disclosure has been described in detail with referenceto the foregoing embodiments, those of ordinary skill in the art shouldunderstand that the technical solutions recorded in the foregoingembodiments may also be modified, or some technical features thereof maybe equivalently replaced, and these modifications or replacements shouldnot be considered as rendering the essence of the correspondingtechnical solution(s) depart from the spirit and scope of the technicalsolutions of the embodiments of the present disclosure.

What is claimed is:
 1. A video processing method for an electronicdevice, the method comprising: acquiring decoding information whendecoding a video file; adding an identifier of the video file to apreset blacklist in response to detecting the decoding information isabnormal; and adding the identifier of the video file to a presetwhitelist and performing display enhancement processing on the videofile in response to detecting the decoding information is not abnormal.2. The method as claimed in claim 1, further comprising: determining thedecoding information is abnormal, in response to detecting the decodinginformation meets the preset decoding information; and determining thedecoding information is not abnormal, in response to detecting thedecoding information does not meet the preset decoding information. 3.The method as claimed in claim 2, wherein the decoding informationcomprises a video file format of the video file, the preset decodinginformation comprises a preset format, and the method further comprises:determining the decoding information meets the preset decodinginformation, in response to detecting the video file format meets thepreset format; and determining the decoding information does not meetthe preset decoding information, in response to detecting the video fileformat does not meet the preset format.
 4. The method as claimed inclaim 3, wherein the preset format comprises a plurality of preset videofile formats, and the method further comprises: comparing the video fileformat with each of the plurality of preset video file formats;determining the video file format meets the preset format, in responseto detecting the video file format is consistent with one of theplurality of preset video file formats; and determining the video fileformat does not meet the preset format, in response to detecting thevideo file format is not consistent with any one of the plurality ofpreset video file formats.
 5. The method as claimed in claim 3, furthercomprising: acquiring a decoding mode corresponding to the video fileformat; determining the video file format meets the preset format, inresponse to detecting the decoding mode meets a preset decoding mode;and determining the video file format does not meet the preset format,in response to detecting the decoding mode does not meet the presetdecoding mode.
 6. The method as claimed in claim 5, wherein theacquiring a decoding mode corresponding to the video file formatcomprises: searching, from a mapping table, for a pre-stored video fileformat consistent with the video file format, wherein the mapping tablecomprises at least a correspondence between the pre-stored video fileformat and a decoding mode; searching, based on the mapping table, forthe decoding mode corresponding to the pre-stored video file format; andtaking the decoding mode corresponding to the pre-stored video fileformat, as the decoding mode corresponding to the video file format. 7.The method as claimed in claim 5, wherein the preset decoding modecomprises a plurality of preset decoding modes, and the method furthercomprises: comparing the decoding mode with each of the plurality ofpreset decoding modes; determining the decoding mode meets the presetdecoding mode, in response to detecting the decoding mode is consistentwith one of the plurality of preset decoding modes; and determining thedecoding mode does not meet the preset decoding mode, in response todetecting the decoding mode is not consistent with any one of theplurality of preset decoding modes.
 8. The method as claimed in claim 3,wherein the determining the decoding information meets the presetdecoding information in response to detecting the video file formatmeets the preset format, comprises: decoding the video file with adecoding mode corresponding to the video file format, in response todetecting the video file format meets the preset format; and displayingthe decoded video file.
 9. The method as claimed in claim 3, wherein theadding the identifier of the video file to a preset whitelist andperforming display enhancement processing on the video file, in responseto determining the decoding information is not abnormal, comprises:decoding the video file with a decoding mode corresponding to the videofile format, in response to detecting the video file format does notmeet the preset format; performing the display enhancement processing onthe decoded video file; and displaying the video file after undergoingthe display enhancement processing.
 10. The method as claimed in claim5, wherein the preset format comprises at least a wmv format, and thedecoding mode comprises at least vclsw decoding.
 11. The method asclaimed in claim 3, wherein the determining the decoding informationmeets the preset decoding information, in response to detecting thevideo file format meets the preset format, comprises: converting thevideo file format of the video file into a target video file format inresponse to detecting the video file format meets the preset format,wherein the target video file format does not meet the preset format;and performing the display enhancement processing on the video filecorresponding to the target video file format.
 12. The method as claimedin claim 11, wherein the converting the video file format of the videofile into a target video file format in response to detecting the videofile format meets the preset format, comprises: acquiring a file size ofthe video file, in response to detecting the video file format meets thepreset format; and converting the video file format of the video fileinto the target video file format, in response to detecting the filesize is less than the preset size.
 13. The method as claimed in claim 2,wherein the decoding information comprises a decoding duration, thepreset decoding information comprises a preset duration, and the methodfurther comprises: determining the decoding information meets the presetdecoding information, in response to detecting the decoding duration isgreater than the preset duration; and determining the decodinginformation does not meet the preset decoding information, in responseto detecting the decoding duration is smaller than or equal to thepreset duration.
 14. The method as claimed in claim 2, wherein thedecoding information comprises a decoding efficiency, the presetdecoding information is an amount of decoding within a preset timeperiod, and the method further comprises: determining the decodinginformation meets the preset decoding information, in response todetecting the decoding efficiency is greater than the amount of decodingwithin the preset time period; and determining the decoding informationdoes not meet the preset decoding information, in response to detectingthe decoding efficiency is smaller than or equal to the amount ofdecoding within the preset time period.
 15. The method as claimed inclaim 2, wherein the decoding information comprises a success rate ofthe decoding, the preset decoding information comprises a ratio, and themethod further comprises: determining the decoding information does notmeet the preset decoding information, in response to detecting thesuccess rate of the decoding is greater than the ratio; and determiningthe decoding information meets the preset decoding information, inresponse to detecting the success rate of the decoding is smaller thanor equal to the ratio.
 16. The method as claimed in claim 1, wherein theidentifier of the video file comprises at least one selected from anidentity identifier, a serial number, an identification code, and aformat identifier of the video file.
 17. An electronic device,comprising a memory and a processor, wherein the memory is coupled tothe processor, the memory stores instructions which, when being executedby the processor, cause the processor to implement operationscomprising: acquiring decoding information when decoding a video file;decoding the video file with a decoding mode corresponding to a videofile format of the video file; performing no display enhancementprocessing on the decoded video file, in response to determining thedecoding information is abnormal; and performing the display enhancementprocessing on the decoded video file, in response to determining thedecoding information is not abnormal.
 18. The electronic device asclaimed in claim 17, wherein the determining the decoding information isabnormal comprising: determining the decoding information is abnormal,in response to detecting the video file format is consistent with apreset format.
 19. The electronic device as claimed in claim 18, whereinthe detecting the video file format is consistent with a preset formatcomprises: determining the video file format is consistent with thepreset format, in response to detecting a decoding mode corresponding tothe video file format is consistent with a preset decoding mode.
 20. Anon-transitory computer-readable storage medium storing program codesthereon, the program codes which, when being executed by a processor,cause the processor to implement operations comprising: acquiringdecoding information when decoding a video file; decoding the video filewith a decoding mode corresponding to a video file format of the videofile, in response to determining the decoding information is notabnormal; converting the video file format of the video file into atarget video file format, and decoding the video file with a decodingmode corresponding to the target video file format, in response todetermining the decoding information is abnormal; and performing displayenhancement processing on the decoded video file.